package NowCoderHuaWei;

import java.util.Scanner;

public class Test13 {

	public static void main(String[] args) {
		Scanner in=new Scanner(System.in);
		while(in.hasNext())
		{
			String str[]=in.nextLine().split(" ");
			for(int i=str.length-1;i>=0;i--)
			{	if(i==0)
					System.out.print(str[i]);
				else
					System.out.print(str[i]+" ");
			}
		}
		in.close();
	}

}
